package com.ambulance.project.biz.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 病历修改历史
 * </p>
 *
 * @author zr
 * @since 2020-04-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("biz_caseChangeLog")
@ApiModel(value="CaseChangeLog对象", description="病历修改历史")
public class CaseChangeLog extends Model<CaseChangeLog> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "编号")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "病历Id")
    @TableField("caseID")
    private Integer caseID;

    @ApiModelProperty(value = "修改人姓名")
    @TableField("changePerson")
    private String changePerson;

    @ApiModelProperty(value = "修改人id")
    @TableField("changePersonID")
    private Integer changePersonID;

    @ApiModelProperty(value = "修改人类型:1=医生,2=护士")
    @TableField("changePersonType")
    private Integer changePersonType;

    @ApiModelProperty(value = "修改内容")
    @TableField("changeContent")
    private String changeContent;

    @ApiModelProperty(value = "修改时间")
    @TableField("changeTime")
    private LocalDateTime changeTime;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
